Nations.N32G032_Library.2.0.1汾
1.IAR
2.ʽ

Nations.N32G032_Library.2.1.0汾
1.RCC޸ADC1MʱӺ궨壬CSR_RMRSTF_Reset궨
2.I2C޸־޸eepromֽڶȡ⡢жDMAģʽ⣬븴λơж
3.LPUART޸stop
4.RTCƥ份ѵ͹ʧܷRTC_ConfigTimeͷļRTC_INT_FLAG_RESERVED_MASK޸־RTCdelay_msʱ޸RTC_WaitForSynchro(void)
5.NVIC
6.SQRTģRADICANTΪRADICAND
7.CANģȡͺ޸
8.LPTIMdemoŻLEDغдLPTIM_PWṂвҪLEDɾش룩
9.PWR_LPRUN demo͹ĴӡϢPWR_SLEEP demo˳͹ĴӡϢ,DBG_SLEEPPWR_STOP demoPCLK1ƵϵΪ1pclk1div = RCC_HCLK_DIV1
10.޸SPI/I2SйڼĴλעͣûֲܶӦϣI2SDemoI2Sصšú궨ɾ#if 0еĴ룬ɾIS2ͨжϷݺģʽIS2/SPIлݵDemoвõĺBuffercmp()
11.OPAMPDemoʱʹGPIOFʱʹ
12.ADC ¶ȴBGͨʹܸд
13.ADC DemoHSIʹܺӦȵȶ
14.ADCļӶADC_CTRL3CKMODE
15.޸TIMеreadme
16.TIMOCxMָĳOCxMD
17.RTCʼ3Ϊ1ںɿ͹رյ1ʱܣʱTIM6SysTickģ飬ɸݺл
18.°ʼRTCdemoôͬºŻ
19.޸SPI_Flash DemoW25QָΪ0x20
20.ADCڲͨVrefintĲdemo
21.RCC_CFG_SCLKSWĳ0x00000007
22.OpaAdByTimdemo޸ADC1MʱԴΪHSI
23.LPUARTWakeUpFromStop_OKmain.cļеPWR_EnterSTOPMode޸
24.TIMDMA BurstĹֻTIMx_DCTRLԼ֮ǰļĴЧ޸TIMCļTIM_ConfigDmaעͣԼTIMͷļTIM_DMABASEĺ궨
25. ɾTSCDemo
26.STOP+ɾn32g032_pwr.c n32g032_pwr.h޸Ӧ롣LPTIMWakeupDemoLPUARTWakeUpFromStopOKDemoPWRStopDemo޸ĽSTOPĺ
27. ޸FLASHע
1޸AC_LATENCY_MSKRDP_USER_Key궨ֵ
2FLASH_SetLatencyעlatencyӦʱӷΧ
3ɾFLASH_UnlockFLASH_LockFLASH_GetSTSFLASH_WaitForLastOptע
4޸FLASH_ConfigALLOptionByteWRP_PagesעͼdataλFLASH_NO_WRPR_Pages궨
5޸FLASH_ConfigUserOBĲrdpuser_tmpֵֵ
6޸FLASH_INTConfigFLASH_GetFlagSTSECCز޸ļ궨
28. ɾadcvoid ADC_EnableTempSensorVrefint(FunctionalState Cmd)
29.޸system_n32g032.cļеϵͳʱú궨巽ʽ
30.޸RCCеRCC_ConfigPllRCC_PLLSourceĴ
31.޸RCC_ClockConfigеpllô룬PLLOUTҪ48~72MΧڣŻע

Nations.N32G032_Library.2.2.0汾
1. n32g032.hļRCC_CFG2_ADC1MSEL궨޸
2. n32g032_rtc.cļУ޸RTC_EnterInitMode(void)
3. TIMģĸDEMOǰӽṹʼ
4. ɾALGOIAR demoӼ㷨гʼIVֵ
5. ɾOpaAdByTim DEMO йPB12ΪTIM1ɲԴѡ
6. I2C_Slave_Int I2C_Slave Demoע
7. KeyInterrupt DemoGPIOģʽ
8. TimeStamp DemoעͳһPB7
9. ŻSPI_I2S_Switch_Slave Demo
10.SPIģ飬CRC DemoReadmeע
11.LP RUN DemoУɾ
12.system_n32g032.cPWR-STOPӵȴHSEȶʱ
13.n32g032_rtc.hļ,޸RTC_GetTime RTC_GetSubSecond,ںȡRTC_DATEĴ
14.RtcAutoWakeUp Demo, ޸n32g032_it.cļеRTC_IRQHandler
15.LPUART Interrupt_okUSART DMA_Interrupt_okUSART Interrupt_okӴжϼرն
16.n32g032_rcc.cļУ޸RCC_ConfigLse()

Nations.N32G032_Library.2.2.1汾
1.ӺTIM_ConfigUpdateEvt
2.n32g032_adc.cļУADC_ConfigIntADC_ClearIntPendingBitADC_ClearFlagADC_FLAG_ENDC_ANYADC_FLAG_JENDC_ANY
3.n32g032_adc.cļУADC_GetFlagStatusADC_GetIntStatusжENDCJENDC֮ӳ8ADC_CLKȥ״̬λ
4.ɾDEMODBGú
5.޸USART TX GPIO
6.USARTʼ㷽ʽ
7.޸RTC_EnterInitModeRTC_ConfigCalendar
8.޸demo̱ʽ
9.ɾRTC_EnableWakeUpTsc

Nations.N32G032_Library.2.3.0汾
1.n32g032_tim.hļУɾTIM_IC_POLARITY_BOTHEDGE궨
2. flashҳӵַж
3. UART demoOREFж
4. I2C/ӻ˫ַdemo
5. EXTIDemoиEXTI_GetStatusFlag()ȡ־
6. RTCжTSHSUBSĴٶһDATEͬ
7. ŻRTCģAutoWakeup Demoжϴ
8. SPI_FlashDemosFLASH_SendByte()sFLASH_SendHalfWord()ݺȻȡTEBUSY־ٻȡRNE־
9. ADC_GetFlagStatusNewеĶ

/***   For English users   ***/
Nations.N32G032_Library.2.0.1 version
1. Add an IAR project.
2. Adjust the code formatting.


Nations.N32G032_Library.2.1.0 version
1. Modify the RCC driver to update the ADC's 1M clock macro definition and CSR_RMRSTF_Reset macro definition.
2. Update the I2C driver to include a clear flag function, fix the single-byte read issue in the EEPROM example, address interrupt and DMA mode problems, introduce a reset mechanism, and implement reentry checks.
3. Modify the LPUART example to improve the stop wake-up routine.
4. Enhance the RTC driver by adding a software workaround for low-power failure when matching alarm seconds (RTC_ConfigTime function), include the RTC_INT_FLAG_RESERVED_MASK macro in the header file for clearing flags, and add a delay_ms() function to be used in modifying the RTC_WaitForSynchro(void) function.
5. In the NVIC example, add debounce functionality.
6. Update the SQRT module driver functions to replace "RADICANT" with "RADICAND."
7. Modify the cancel send function for the CAN module.
8. Optimize LED-related function implementations in various LPTIM demos (excluding the LPTIM_PWM example where LED-related code is removed).
9. In the PWR_LPRUN demo, add print information for entering and exiting low-power mode. In the PWR_SLEEP demo, add print information for exiting low-power mode. 
   Add DBG_SLEEP and change the PCLK1 division factor to 1 in the PWR_STOP demo (i.e., pclk1div = RCC_HCLK_DIV1).
10. Update comments related to register bits in the SPI/I2S drivers to align with the user manual. In the I2S demos, 
    use macros for pins and names related to I2S and remove unnecessary code within "#if 0." Delete unused functions "Buffercmp()" in the I2S host sending data via interrupt and switching between I2S/SPI master mode demos.
11. Add clock enable for GPIOF in the OPAMP demo's clock enable section.
12. Rewrite the enabling of the ADC temperature sensor and BG (Bandgap) channel.
13. In the ADC demo, ensure stability after enabling HSI.
14. Add operations for ADC_CTRL3 in the ADC driver files.
15. Update the readme in the TIM examples.
16. Change the name of "OCxM" to "OCxMD" in the TIM driver.
17. Combine the calendar initialization functions in the RTC driver into one function. Add a 1-second delay feature that can be enabled or disabled within the function. The delay count utilizes the TIM6 and SysTick modules and can be switched based on macros.
18. Sync and optimize the related configuration code in the RTC demos based on the new version of the calendar initialization driver function.
19. Change the W25Q sector erase command to 0x20 in the SPI_Flash Demo.
20. Add ADC internal channel Vrefint sample demo
21. Change "RCC_CFG_SCLKSW" to "0x00000007".
22. Modify the clock source of ADC1M is from HSI
23. In the "WakeUpFromStop_OK" Demo for LPUART, make modifications to the "main.c" file where the "PWR_EnterSTOPMode" function is called.
24. TIMx_DCTRL's subsequent registers cannot apply the DMABurst function, and modify the corresponding code
25. Delete the Demo of TSC.
26. Remove the STOP+ functionality and make corresponding modifications in the "n32g032_pwr.c" and "n32g032_pwr.h" files. 
    Update the function calls to enter STOP mode in the LPTIM Wakeup Demo, LPUART WakeUpFromStopOK Demo, and PWR Stop Demo.
27. Modify FLASH drive and note
	1) Modify AC_ LATENCY_ MSKRDP_ USER_ Key macro definition value
	2FLASH_ SetLatency function adds a comment description and the clock range corresponding to latency
	3) Remove FLASH_ UnlockFLASH_ LockFLASH_ GetSTSFLASH_ WaitForLastOpt function extra comment
	4) Modify FLASH_ ConfigALLOptionByte function parameter WRP_Pages annotation and data shift operation, add FLASH_NO_WRPR_Pages Macro Definition
	5) Modify FLASH_ConfigUserOB's Parameter rdpuser_tmp  Value assigned
	6) Modify  Input parameters of FLASH_INTConfig and FLASHGetFlagSTS functions and new ECC error related parameters, and modify the check macro definition
28. Delete void ADC_EnableTempSensorVrefint(FunctionalState Cmd)
29. Modify the way the system clock configuration macros are defined in the system_n32g031.c file
30. Modify the RCC_ConfigPll function in the RCC driver and add RCC_PLLSource register configuration
31. Modify the pll configuration code in the RCC_ClockConfig demo, PLLOUT should be in the range of 48~72M, and optimize some comments


Nations.N32G032_Library.2.2.0 version
1. Modify RCC_CFG2_ADC1MSEL macro in n32g032.h
2. Modify the RTC_EnterInitMode(void) function in the n32g032_rtc.c file
3. TIM module's various DEMOs, add structure initialization before configuration
4. Delete the comment description about LPTIM_TRIG_SOURCE_COMP2 in n32g032_lptim.c
5. Delete PB12 as the blinking source function for TIM1 in the OpaAdByTim demo
6. Add notes in I2C_Slave_Int and I2C_Slave Demo 
7. Add GPIO mode configuration in KeyInterrupt Demo 
8. Unify the comments for PB7 in the TimeStamp Demo
9. Optimize the SPI_I2S_Switch_Slave Demo
10.Add notes to the Readme of the SPI module's CRC Demo
11.Remove redundant code in the LP RUN demo
12.Add wait HSE stable delay in system_n32g032.c and PWR-STOP demo
13.RTC_GetTime and RTC_GetSubSecond function read RTC_DATE register in the end in the n32g032_rtc.c file
14.modify RTC_IRQHandler function in RtcAutoWakeUp Demo in n32g032_it.c file
15.LPUART Interrupt_okUSART Interrupt_ok demo add error flag check and clear, and disable assert
16.Modify the RCC_ConfigLse() function in the n32g032_rcc.c file

Nations.N32G032_Library.2.2.1 version
1.Added TIM_ConfigUpdateEvt.
2.Add  ADC_FLAG_ENDC_ANY, ADC_FLAG_JENDC_ANY as the new input param in ADC_ConfigIntADC_ClearIntPendingBit and ADC_Clear Flag functions  in the n32g032_adc.c file.
3.Add codes to judge if ENDC or JENDC is set, return the status after 8 adc_clk delay in ADC_GetFlagStatus and ADC_GetIntStatus functions in the n32g032_adc.c file.
4.Delect DBG configuration and discription in DEMO
5.Modify USART TX GPIO configuration
6.Update the baud rate calculation method of USART driver function
7.Modify RTC_EnterInitMode and RTC_ConfigCalendar function
8.Modify the error handling of demo routines.
9.Delete RTC_EnableWakeUpTsc function

Nations.N32G032_Library.2.3.0 version
1.In the n32g032_tim.h file, delete the macro definition of TIM_IC_POLARITY_BOTHEDGE
2. Flash page erase to add address judgment
3. UART demo adds OREF judgment
4. Added I2C master/slave dual-address demo
5. Modified the EXTI demo to use EXTI_GetStatusFlag() for flag retrieval
6. In the RTC driver, trigger synchronization by reading the DATE register again after reading the TSH or SUBS register
7. Optimize the Interrupt Handling Function of the RTC Module's AutoWakeup Demo
8. In the SPI_Flash demo, sFLASH_SendByte() and sFLASH_SendHalfWord() functions now check TE and BUSY flags before checking RNE flag after data transmission
9. Fixed assertions in ADC_GetFlagStatusNew function


